package co.com.smart.persistence.entity.dto;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * The persistent class for the smart_sede database table.
 * 
 */
@Entity
@Table(name="smart_sedesgrados")
@NamedQuery(name="SmartSedeGrados.findAll", query="SELECT s FROM SmartSedeGrados s")
public class SmartSedeGrados implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="sm_scsedesgrados")
	private BigDecimal smscsedesgrados;

	
	@Column(name="sm_cousuario")
	private String smCousuario;

	@Temporal(TemporalType.DATE)
	@Column(name="sm_fhingreso")
	private Date smFhingreso;

	@Temporal(TemporalType.DATE)
	@Column(name="sm_fhmodificacion")
	private Date smFhmodificacion;

	@Temporal(TemporalType.DATE)
	@Column(name="sm_fhretiro")
	private Date smFhretiro;

	
	//bi-directional many-to-one association to SmartDatosMaestro
	@ManyToOne
	@JoinColumn(name="sm_scsedes")
	private SmartSede smartSede;

	//bi-directional many-to-one association to SmartDatosMaestro
	@ManyToOne
	@JoinColumn(name="sm_scgrados")
	private SmartDatosMaestro smartGrados;

	
	public SmartSedeGrados() {
	}

	public BigDecimal getSmscsedesgrados() {
		return this.smscsedesgrados;
	}

	public void setSmscsedesgrados(BigDecimal smscsedesgrados) {
		this.smscsedesgrados = smscsedesgrados;
	}


	public String getSmCousuario() {
		return this.smCousuario;
	}

	public void setSmCousuario(String smCousuario) {
		this.smCousuario = smCousuario;
	}


	public Date getSmFhingreso() {
		return this.smFhingreso;
	}

	public void setSmFhingreso(Date smFhingreso) {
		this.smFhingreso = smFhingreso;
	}

	public Date getSmFhmodificacion() {
		return this.smFhmodificacion;
	}

	public void setSmFhmodificacion(Date smFhmodificacion) {
		this.smFhmodificacion = smFhmodificacion;
	}

	public Date getSmFhretiro() {
		return this.smFhretiro;
	}

	public void setSmFhretiro(Date smFhretiro) {
		this.smFhretiro = smFhretiro;
	}

	
	public SmartSede getSmartSede() {
		return this.smartSede;
	}

	public void setSmartSede(SmartSede smartSede) {
		this.smartSede = smartSede;
	}

	public SmartDatosMaestro getSmartGrados() {
		return this.smartGrados;
	}

	public void setSmartGrados(SmartDatosMaestro smartGrados) {
		this.smartGrados = smartGrados;
	}

	

}
